var a = wx.createInnerAudioContext();

a.loop = !0;

var t = getApp();

Page({
    data: {
        data_yinyue: [],
        data_yyurl: "",
        data_shiting: -1,
        data_geming: t.globalData.linkgeming
    },
    view_a2_sttap: function(t) {
        var n = t.currentTarget.dataset.index;
        this.setData({
            data_yyurl: t.currentTarget.dataset.url,
            data_shiting: n
        }), a.stop(), a.src = this.data.data_yyurl, a.play();
    },
    view_a2_xztap: function(a) {
        t.globalData.linkgeming = "(" + a.currentTarget.dataset.geming + ")", t.globalData.linkmusicurl = a.currentTarget.dataset.url, 
        wx.navigateBack({
            delta: 0
        });
    },
    view_a1_tap: function(a) {
        t.globalData.linkgeming = "(" + a.currentTarget.dataset.geming + ")", t.globalData.linkmusicurl = "(" + a.currentTarget.dataset.url + ")", 
        wx.navigateBack({
            delta: 0
        });
    },
    wenzi_tap: function (e) {
        var that = this;
        wx.setClipboardData({
         data: "这里为复制的内容",
         success: function (res) {
          wx.showModal({
           title: '提示',
           content: '复制成功',
           success: function (res) {
            if (res.confirm) {
             console.log('确定')
            } else if (res.cancel) {
             console.log('取消')
            }
           }
          })
         }
        });
       },
    onLoad: function(n) {
        this.setData({
            data_yinyue: t.globalData.yulanyinyue
        }), a.onError(function() {
            wx.showToast({
                title: "试听异常",
                icon: "error"
            });
        });
    },
    onHide: function() {
        console.log("隐藏");
    },
    onUnload: function() {
        a.stop();
    },
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});